package org.bpms.model.admin;

import java.util.List;

import com.jfinal.plugin.activerecord.Model;

/**
 * 菜单模型，菜单最大深度3层,最小深度2层
 * @author hupei
 *
 */
public class Smenu extends Model<Smenu>{
	private static final long serialVersionUID = 4960545034893898294L;
	public static final Smenu me = new Smenu();
	
	private List<Smenu> smenus ;//子菜单
	private int haveChild = 0;//主要用于顶层菜单，判断该顶层菜单下有无没有child的子菜单 有1 无0
	
	public List<Smenu> getSmenus() {
		return smenus;
	}
	public void setSmenus(List<Smenu> smenus) {
		this.smenus = smenus;
	}
	public int getHaveChild() {
		return haveChild;
	}
	public void setHaveChild(int haveChild) {
		this.haveChild = haveChild;
	}
}
